package org.jsola.hr.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.jsola.core.Page;
import org.jsola.core.Result;
import org.jsola.hr.dto.AttendanceMonthlyArchiveAddDTO;
import org.jsola.hr.dto.AttendanceMonthlyArchiveUpdateDTO;
import org.jsola.hr.query.AttendanceMonthlyArchiveQuery;
import org.jsola.hr.vo.AttendanceMonthlyArchiveListVO;
import org.jsola.hr.vo.AttendanceMonthlyArchiveVO;

import java.util.List;

/**
 * 员工考勤月统计归档
 *
 * @author zhr
 */
@Api(tags = "hr-员工考勤月统计归档")
public interface IAttendanceMonthlyArchiveControllerAPI {

    /**
     * 新增员工考勤月统计归档
     * @param attendanceMonthlyArchiveAddDTO 员工考勤月统计归档新增实体
     * @return 员工考勤月统计归档展示对象
     */
    @ApiOperation(value = "新增员工考勤月统计归档")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendanceMonthlyArchiveAddDTO", dataType = "AttendanceMonthlyArchiveAddDTO", value = "新增员工考勤月统计归档", paramType = "body")
    })
    Result<AttendanceMonthlyArchiveVO> save(AttendanceMonthlyArchiveAddDTO attendanceMonthlyArchiveAddDTO);


    /**
     * 修改员工考勤月统计归档
     * @param attendanceMonthlyArchiveUpdateDTO 员工考勤月统计归档
     * @return 更新数量
     */
    @ApiOperation(value = "修改员工考勤月统计归档")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendanceMonthlyArchiveUpdateDTO", dataType = "AttendanceMonthlyArchiveUpdateDTO", value = "修改员工考勤月统计归档", paramType = "body")
    })
    Result<Integer> update(AttendanceMonthlyArchiveUpdateDTO attendanceMonthlyArchiveUpdateDTO);




    /**
     * 删除单个员工考勤月统计归档，彻底删除
     * @param attendanceMonthlyArchiveId 员工考勤月统计归档id
     * @return 删除数量
     */
    @ApiOperation(value="删除单个员工考勤月统计归档，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendanceMonthlyArchiveId", dataType = "String", value = "员工考勤月统计归档id", paramType = "path")
    })
    Result<Integer> delete(String attendanceMonthlyArchiveId);


    /**
     * 批量删除员工考勤月统计归档，彻底删除
     * @param attendanceMonthlyArchiveIds 员工考勤月统计归档id集合
     * @return 删除数量
     */
    @ApiOperation(value = "批量删除员工考勤月统计归档，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendanceMonthlyArchiveIds", dataType = "String[]", value = "员工考勤月统计归档id数组", paramType = "body" ,allowMultiple = true)
    })
    Result<Integer> deleteBatch(String[] attendanceMonthlyArchiveIds);


    /**
     * 根据员工考勤月统计归档id查询员工考勤月统计归档详情
     * @param attendanceMonthlyArchiveId 员工考勤月统计归档id
     * @return 员工考勤月统计归档详情
     */
    @ApiOperation(value="根据员工考勤月统计归档id查询员工考勤月统计归档详情")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendanceMonthlyArchiveId", dataType = "String", value = "员工考勤月统计归档id", paramType = "path")
    })
    Result<AttendanceMonthlyArchiveVO> findById(String attendanceMonthlyArchiveId);


    /**
     * 查询员工考勤月统计归档
     * @param attendanceMonthlyArchiveQuery 员工考勤月统计归档查询参数
     * @return page
     */
    @ApiOperation(value="查询员工考勤月统计归档")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendanceMonthlyArchiveQuery", dataType = "AttendanceMonthlyArchiveQuery", value = "员工考勤月统计归档查询参数", paramType = "query")
    })
    Result<List<AttendanceMonthlyArchiveListVO>> listAll(AttendanceMonthlyArchiveQuery attendanceMonthlyArchiveQuery);


    /**
     * 分页查询员工考勤月统计归档
     * @param attendanceMonthlyArchiveQuery 员工考勤月统计归档查询参数
     * @return page
     */
    @ApiOperation(value="分页查询员工考勤月统计归档")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendanceMonthlyArchiveQuery", dataType = "AttendanceMonthlyArchiveQuery", value = "员工考勤月统计归档查询参数", paramType = "query")
    })
    Result<Page<AttendanceMonthlyArchiveListVO>> page(AttendanceMonthlyArchiveQuery attendanceMonthlyArchiveQuery);


}

